/*******************************************************************************
*Project :       	Covid-19 Stay At Home Paper
*Purpose : 		    Do-file that renames final tables and figures for the paper
*STATA version: 	17.0
*Author: 			Diane Alexander and Ezra Karger 
*******************************************************************************/

*global figures_map "${machine}/figures/maps"
global tables "${machine}/tables/event_time/main"
global figures "${machine}/figures/event_time/main"
global tables_sdfe "${machine}/tables/event_time/statedayfe"
global figures_sdfe "${machine}/figures/event_time/statedayfe"
global tables_sm "${machine}/tables/event_time/secondmeasure"
global figures_sm "${machine}/figures/event_time/secondmeasure"
global tables_hr "${machine}/tables/horserace"
global figures_map "${machine}/maps"

global final "${machine}/text/forpublication"
 
*Figure 1
copy "${figures_map}/county_stay_at_home_v2.png"  "${final}/F1.png", replace

 
*Figure 2
 copy "${figures}/distance_byevent.pdf"  "${final}/F2a.pdf", replace
 copy "${figures}/visit_byevent.pdf"  "${final}/F2b.pdf", replace
 copy "${figures}/log_pe_food_byevent.pdf"  "${final}/F2c.pdf", replace
 copy "${figures}/log_pe_other_byevent.pdf"  "${final}/F2d.pdf", replace
 
*Figure 3
 copy "${figures_sm}/log_retail_event_all_half_wtd.pdf"  "${final}/F3a.pdf", replace
 copy "${figures_sm}/log_non_retail_event_all_half_wtd.pdf"  "${final}/F3b.pdf", replace
 copy "${figures_sm}/log_food_delivery_event_all_half_wtd.pdf"  "${final}/F3c.pdf", replace
 copy "${figures_sm}/log_amazon_event_all_half_wtd.pdf"  "${final}/F3d.pdf", replace
 
 
*Figure 4
 copy "${figures}/distance_incsplit_1reg.pdf"  "${final}/F4a.pdf", replace
 copy "${figures}/log_pe_all_incsplit_1reg.pdf"  "${final}/F4b.pdf", replace
 copy "${figures}/distance_trumpsplit_1reg.pdf"  "${final}/F4c.pdf", replace
 copy "${figures}/log_pe_all_trumpsplit_1reg.pdf"  "${final}/F4d.pdf", replace
 copy "${figures}/distance_timingsplit_1reg.pdf"  "${final}/F4e.pdf", replace
 copy "${figures}/log_pe_all_timingsplit_1reg.pdf"  "${final}/F4f.pdf", replace


*Table 1
 copy "${tables_hr}/d_distance_event_2bins_v5.tex"  "${final}/T1a.tex", replace
 copy "${tables_hr}/d_log_pe_all_event_2bins_v5.tex"  "${final}/T1b.tex", replace
 copy "${tables_hr}/d_log_pe_food_event_2bins_v5.tex"  "${final}/T1c.tex", replace
 

